home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
Q-R
/
REgion.cpt
/
Region Buttons
/
card_3858.txt
< prev
next >
Wrap
Text File
|
1987-11-07
|
710b
|
25 lines
-- card: 3858 from stack: in
-- bmap block id: 0
-- flags: 0000
-- background id: 2722
-- name:
-- part contents for background part 14
----- text -----
How is it done?
-- part contents for background part 13
----- text -----
This feat is accomplished with the help of 3 commands within an external command (XCMD) called "ButtonRgn". These commands are:
NewRgn: Creates the shape(s) of the new button(s) and pastes them on the screen.
TestHit: Checks the mouse locations against all the regions. Returns the number of the button hit or zero if none hit.
DisposeRgn: Removes the button regions from memory. Does NOT erase them from the screen.
-- part contents for background part 15
----- text -----
2